import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import config from '@/config'
import ViewUI from 'view-design'
// import 'view-design/dist/styles/iview.css'
import '@/views/common/css/iview.css'
import iViewThemes from 'iview-layout-themes'
import 'iview-layout-themes/lib/iview-layout-themes.css'

import '@/views/common/css/style.css'
import CustomComponents from '@/components/custom/index'
import DateFormat from '@/plugins/format.js'

import echarts from "echarts"

// if (process.env.NODE_ENV !== 'production') require('@/mock')
Vue.use(ViewUI)
Vue.use(iViewThemes)
Vue.use(CustomComponents);
Vue.config.productionTip = false
Vue.prototype.$config = config
Vue.prototype.$echarts = echarts
Vue.prototype.DateFormat = DateFormat
Vue.prototype.$Message.config({
    duration: 10
});
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
